{layout name="layout" /}
<table class="table">
<colgroup>
    <col class="w40" />
    <col class="w200" />
    <col class="w80" />
    <col class="w80" />
    <col class="w80" />
    <col class="w130" />
    <col class="w160" />
</colgroup>
<thead>
    <tr>
        <th class="fn-tac">#</th>
        <th>数据库名称</th>
        <th>行数</th>
        <th>索引ID</th>
        <th>引擎</th>
        <th>编码格式</th>
        <th>创建时间</th>
        <th>备注</th>
    </tr>
</thead>
<tbody>
{volist name="table_list" id="rs"}
    <tr>
        <td class="fn-tac">{$i}</td>
        <td>{$rs.Name}</td>
        <td>{$rs.Rows}</td>
        <td>{$rs.Auto_increment}</td>
        <td>{$rs.Engine}</td>
        <td>{$rs.Collation}</td>
        <td>{$rs.Create_time}</td>
        <td>{$rs.Comment}</td>
    </tr>
{/volist}
</tbody>
</table>
{if condition="$action"}
<script type="text/javascript">
Do('base','layer','nprogress',function(){
    parent.layer.confirm('{$info.message}',{icon:3,shade:0.1,closeBtn:0},function(index){
        parent.layer.close(index);
        NProgress.start();
        parent.layer.load(0,{shade:0.1,
          success:function(layero,index){
            $.getJSON('{$info.posturl}',{action:"isPost"},function(data){
                NProgress.done();
                parent.layer.close(index);
                parent.layer.alert(data.message, {icon: 1,
                  end:function(){
                    window.location.replace(data.data.url)
                  }
                })
            });
          }
        });
    },function(index){
        parent.layer.close(index);
        window.location.replace('{$info.backurl}')
    });
})
</script>
{/if}